void run(){


	
	int Map=0;
	START:;
	int choose=0;
	char c=0;
	welcome();
	gotoXY(31,9);
	printf(">");
	
	while(c!='\r'){

		while(!kbhit()){
			
		}
		c=getch();
		if(c==UP&&choose>0){
			gotoXY(31,9+2*choose);
			printf(" ");
			choose--;
			gotoXY(31,9+2*choose);
			printf(">");
		}
		else if(c==DOWN&&choose<MAX_CHOOSE){
			gotoXY(31,9+2*choose);
			printf(" ");
			choose++;
			gotoXY(31,9+2*choose);
			printf(">");
		}
	}
	if(choose==0){
		Play(Map);
		goto START;
	}
	else if(choose==1){
		chooseMap(Map);
		goto START;
	}
	else if(choose==2){
		chooseMode(MODE);
		goto START;
	}
	else if(choose==3){
		showRecords();
		while(getch()!='\r');
		goto START;
	}
	
	else if(choose==4){
		showExplanation();
		while(getch()!='\r');
		goto START;
	}
	else if(choose==5){
		settings();
		goto START;
	}
	else if(choose==6)exit(0);
}
